
package week05;

import java.util.Scanner;

public class While4 {

public static void main(String[] args){
    //Scanner myScanner = null;
      Scanner myScanner = new Scanner(System.in);
    String Temp = new String();
    Temp="da";
    String Continuare = new String();
    boolean conditie = true;
    while (conditie) {
          System.out.print("Mai doriti inca o interogare ? (da/nu)");
          Continuare  = myScanner.next();
          conditie = Continuare.equals(Temp);
  }
}
}